package com.jeesite.common.web;

public class BaseResponse {

    private String resultCode;

    private String msg;

    public static BaseResponse success(){
        BaseResponse response = new BaseResponse();
        response.setResultCode("SUCCESS");
        return response;
    }

    public static BaseResponse error(String msg) {
        BaseResponse response = new BaseResponse();
        response.setMsg(msg);
        response.setResultCode("FAIL");
        return response;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
